// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 42;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You find the burned-out shell of a stone ruin. It has been abandoned for many years, unoccupied except for the occasional family of mice.";
	text2 = "The old bricks show signs of scorching, mostly faded away by the years but still visible. There was once a battle here. Of course, that is true for everywhere in the Rokaj.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "This bunkhouse is still intact. However, it is empty, cold, and in need of cleaning and repairs. Some supplies and tools have been left here. A light layer of snow covers them. The bundles bear the scroll symbol of Haven.";
	text2 = "Your people have plans to build up this claim. First, however, they must secure the area. You can see the entrance to your mine to the north.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You are at the edge of a wide field of ice and rock. The ground is flat, providing little protection from the gusts of icy wind.";
	text2 = "Wispy clouds blow across the wastes. Some of them are probably little mountain twisters of ice and snow. Others probably conceal wandering shades.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You walk among two rows of tall stone monuments. The bases are etched with long lists of dead clan members, memorialized out here in the wastes.";
	text2 = "You note that many of the names say _Of the Kranas,_ of _Of the Dhaga._ Apparently, no death in the Ro is complete without a memorial, even a modest one, up here in the High Litha.";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = gf(142,17) == 0;
	text1 = "When these warriors emerge from the mist and snow, you get a good look at them. They are Havenites! They recognize you immediately, and they are eager to talk to you.";
	text2 = "_We are honored, [P]! Our Empire's claim is not far to the west. It has been ... troubled. We could use the help._ They chat a bit more and then, shivering, resume their patrol.";
	text3 = "You learn that your claim is still secure. It is enjoying a brief, pleasant period of not being attacked.";
	code =
		if (gf(47,11) == 0)
			rs(3);
			else rs(2);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "A sharp wind blows several insubstantial forms toward you. When they get close, you see that they are ghosts! They are spirits of lost Ro warriors of old. When they see you, they howl and rush toward you.";
	text2 = "Then they crash over you, exploding into clouds of sharp ice crystals. With final, angry howls, they return to their rest.";
	text3 = "You are startled and chilled to the bone, but otherwise unharmed.";
	text4 = "Then they crash into you. You find that this group is angrier and more substantial than the others. They stop and face you. You feel chilled to the bone.";
	code =
		inc_flag(142,18,1);
		if (gf(142,18) == 3) {
			rs(2); rs(3);
			sf(142,19,1);
			}
			else {
				rs(4);
				cancel_out_fight(0,1);
				}
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Several tall, thin folk of the High Litha are marching through this grim, cold waste. They don't seem to have a goal in mind. They're just walking in circles, protected from the elements by thick leather clothes.";
	text2 = "When you get close, they don't react. They just keep marching in the same direction. You note they are looking around for something.";
	text5 = "When you get close, you recognize them as the same group of Misttalkers you met before.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach them.";
	text1 = "When you turn to meet them, they stop walking. They make you come to them. When you get close, one of them says, _I am Wolt, of the Misttalkers. We do not have time to talk._";
	text3 = "When you turn to meet them, they stop walking. Misttalker Wolt stands out in front. _We are still on our journey, Haven._";
	action = SET_TO_1 142 11 1;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Keep walking.";
	text1 = "They march off into the snow and are soon lost from sight. They never acknowledged your presence.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about this area._";
	text1 = "_Your people have a claim near here. You should go there. We do not have time to guide you._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Where are you from?_";
	text1 = "They quietly stare at you.";
	text2 = "";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_What brings Misttalkers here?_";
	text1 = "They look at each other, unsure about what to say. Finally, Wolt says, _We are on a hunt. Shades are drawn to this waste. Most wander and then return to rest._";
	text2 = "_One group is tangible. They are threatening passers-by. We must invite them to return to their rest._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Perhaps I can help you._";
	text1 = "They don't like the sound of that. _You are not full Rokaj. I don't think you are a true Ro. We deal with our own. We will go._";
	text2 = "Without further pleasantries, they walk off.";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Good luck on your hunt._";
	text1 = "They nod. _Some think you are part Ro. We don't. The shades won't, either. Travel with caution._";
	text2 = "They walk off.";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(142,19) > 0;
	question = "_Oh, those? I destroyed them._";
	text1 = "The Misttalkers are shocked. _It is for the Rokaj to deal with our ghosts. But ... They say you are half-Ro. If the ghosts think you share our blood, we should hear._";
	text2 = "Then they turn and walk away, heading toward warmth and safety. No more words or gesture. They are odd people.";
	action = END_TALK;
	code =
		sf(142,12,1);
		ro_faction(1);
		award_party_xp(25);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				